/*
 * 项   目：code-generator
 * 作   者：LuoYiMin
 * 邮   箱：1725990142@qq.com
 * 创建时间：2018/12/28 8:45
 */
package com.roin.util.code.generator.model;

import com.roin.util.code.generator.DefaultConfig;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class HtmlConfig  implements Serializable {

    /**
     * 项目项目路径
     */
    private String baseUrl= DefaultConfig.getHtmlBaseUrl();
    /**
     * 是否显示表格第一行的复选框
     */
    private boolean showCheckBox=DefaultConfig.isHtmlShowCheckBox();
    /**
     * 是否开行工具栏
     */
    private boolean rowTool = true;
    /**
     * 是否需要新增表单
     */
    private boolean needAddForm=true;
    /**
     * 是否需要修改表单
     */
    private boolean needEditForm =true;
    /**
     * 是否需要删除方法
     */
    private boolean canDelete=true;
    /**
     * 是否可以批量删除
     */
    private boolean canBatchDelete =true;

    private List<HtmlConfigColumn> columns = new ArrayList<>();

    private String tableName;



    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public boolean isShowCheckBox() {
        return showCheckBox;
    }

    public void setShowCheckBox(boolean showCheckBox) {
        this.showCheckBox = showCheckBox;
    }

    public boolean isRowTool() {
        return rowTool;
    }

    public void setRowTool(boolean rowTool) {
        this.rowTool = rowTool;
    }

    public boolean isNeedAddForm() {
        return needAddForm;
    }

    public void setNeedAddForm(boolean needAddForm) {
        this.needAddForm = needAddForm;
    }

    public boolean isNeedEditForm() {
        return needEditForm;
    }

    public void setNeedEditForm(boolean needEditForm) {
        this.needEditForm = needEditForm;
    }

    public boolean isCanDelete() {
        return canDelete;
    }

    public void setCanDelete(boolean canDelete) {
        this.canDelete = canDelete;
    }

    public boolean isCanBatchDelete() {
        return canBatchDelete;
    }

    public void setCanBatchDelete(boolean canBatchDelete) {
        this.canBatchDelete = canBatchDelete;
    }

    public List<HtmlConfigColumn> getColumns() {
        return columns;
    }

    public void setColumns(List<HtmlConfigColumn> columns) {
        this.columns = columns;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
}
